﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;

namespace DAL
{
    public static class DataAccess
    {
        private static readonly string connectionStringName = ConfigurationManager.AppSettings.Get("ConnectionStringName");
        private static readonly DaoFactory factory = DaoFactories.GetFactory(connectionStringName);

        /// <summary>
        /// Gets a provider-specific DMHINHTHUCTHANHTOAN data access object.
        /// </summary>
        public static IDMHINHTHUCTHANHTOAN_Dao DMHINHTHUCTHANHTOAN_Dao
        {
            get { return factory.DMHINHTHUCTHANHTOAN_Dao; }
        }

        /// <summary>
        /// Gets a provider-specific DMLOAITIENTE data access object.
        /// </summary>
        public static IDMLOAITIENTE_Dao DMLOAITIENTE_Dao
        {
            get { return factory.DMLOAITIENTE_Dao; }
        }

        /// <summary>
        /// Gets a provider-specific DMTINHTRANGHOADON data access object.
        /// </summary>
        public static IDMTINHTRANGHOADON_Dao DMTINHTRANGHOADON_Dao
        {
            get { return factory.DMTINHTRANGHOADON_Dao; }
        }

        /// <summary>
        /// Gets a provider-specific DMLOAITHUE data access object.
        /// </summary>
        public static IDMLOAITHUE_Dao DMLOAITHUE_Dao
        {
            get { return factory.DMLOAITHUE_Dao; }
        }

        /// <summary>
        /// Gets a provider-specific DMKHACHHANG data access object.
        /// </summary>
        public static IDMKHACHHANG_Dao DMKHACHHANG_Dao
        {
            get { return factory.DMKHACHHANG_Dao; }
        }

        /// <summary>
        /// Gets a provider-specific HOADON data access object.
        /// </summary>
        public static IHOADON_Dao HOADON_Dao
        {
            get { return factory.HOADON_Dao; }
        }

        /// <summary>
        /// Gets a provider-specific DMQUYENHOADON data access object.
        /// </summary>
        public static IDMQUYENHOADON_Dao DMQUYENHOADON_Dao
        {
            get { return factory.DMQUYENHOADON_Dao; }
        }

        /// <summary>
        /// Gets a provider-specific HOADONTAM data access object.
        /// </summary>
        public static IHOADONTAM_Dao HOADONTAM_Dao
        {
            get { return factory.HOADONTAM_Dao; }
        }

        /// <summary>
        /// Gets a provider-specific DMHANGHOA data access object.
        /// </summary>
        public static IDMHANGHOA_Dao DMHANGHOA_Dao
        {
            get { return factory.DMHANGHOA_Dao; }
        }

        /// <summary>
        /// Gets a provider-specific HUYHOADON data access object.
        /// </summary>
        public static IHUYHOADON_Dao HUYHOADON_Dao
        {
            get { return factory.HUYHOADON_Dao; }
        }

        /// <summary>
        /// Gets a provider-specific CONGTY data access object.
        /// </summary>
        public static ICONGTY_Dao CONGTY_Dao
        {
            get { return factory.CONGTY_Dao; }
        }

        /// <summary>
        /// Gets a provider-specific BANSAOHOADON data access object.
        /// </summary>
        public static IBANSAOHOADON_Dao BANSAOHOADON_Dao
        {
            get { return factory.BANSAOHOADON_Dao; }
        }

        /// <summary>
        /// Gets a provider-specific DMDONVITINH data access object.
        /// </summary>
        public static IDMDONVITINH_Dao DMDONVITINH_Dao
        {
            get { return factory.DMDONVITINH_Dao; }
        }

        /// <summary>
        /// Gets a provider-specific HOADONCHITIET data access object.
        /// </summary>
        public static IHOADONCHITIET_Dao HOADONCHITIET_Dao
        {
            get { return factory.HOADONCHITIET_Dao; }
        }

        /// <summary>
        /// Gets a provider-specific CAUHINHTRANGIN data access object.
        /// </summary>
        public static ICAUHINHTRANGIN_Dao CAUHINHTRANGIN_Dao
        {
            get { return factory.CAUHINHTRANGIN_Dao; }
        }

        /// <summary>
        /// Gets a provider-specific SYS_FUNCTION data access object.
        /// </summary>
        public static ISYS_FUNCTION_Dao SYS_FUNCTION_Dao
        {
            get { return factory.SYS_FUNCTION_Dao; }
        }

        /// <summary>
        /// Gets a provider-specific SYS_FUNC_COMM data access object.
        /// </summary>
        public static ISYS_FUNC_COMM_Dao SYS_FUNC_COMM_Dao
        {
            get { return factory.SYS_FUNC_COMM_Dao; }
        }

        /// <summary>
        /// Gets a provider-specific SYS_COMMAND data access object.
        /// </summary>
        public static ISYS_COMMAND_Dao SYS_COMMAND_Dao
        {
            get { return factory.SYS_COMMAND_Dao; }
        }

        /// <summary>
        /// Gets a provider-specific SYS_GROUP data access object.
        /// </summary>
        public static ISYS_GROUP_Dao SYS_GROUP_Dao
        {
            get { return factory.SYS_GROUP_Dao; }
        }

        /// <summary>
        /// Gets a provider-specific SYS_USER_COMM data access object.
        /// </summary>
        public static ISYS_USER_COMM_Dao SYS_USER_COMM_Dao
        {
            get { return factory.SYS_USER_COMM_Dao; }
        }

        /// <summary>
        /// Gets a provider-specific SYS_GROUP_COMM data access object.
        /// </summary>
        public static ISYS_GROUP_COMM_Dao SYS_GROUP_COMM_Dao
        {
            get { return factory.SYS_GROUP_COMM_Dao; }
        }

        /// <summary>
        /// Gets a provider-specific SYS_USER data access object.
        /// </summary>
        public static ISYS_USER_Dao SYS_USER_Dao
        {
            get { return factory.SYS_USER_Dao; }
        }

        /// <summary>
        /// Gets a provider-specific SYS_GROUPUSER data access object.
        /// </summary>
        public static ISYS_GROUPUSER_Dao SYS_GROUPUSER_Dao
        {
            get { return factory.SYS_GROUPUSER_Dao; }
        }
    }
}
